﻿
using PesticideManage.API.Services.Identity.UserAggregate;
using PesticideManage.API.Services.Menus;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace PesticideManage.API.Services.Identity.RoleAggregate;

public class Role
{
    public int Id { get; set; }
    public string Name { get; set; } = null!;
    [JsonIgnore]
    public ICollection<User>? Users { get; set; }
    public ICollection<Menu> Menus { get; set; } = null!;
}
